﻿namespace SBlogCore.WebAdminApplication.SysRoleManager.Dto
{
    public class UserWithRoleOutPut
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 部门名字
        /// </summary>

        public string? SysOrgName { get; set; }
        /// <summary>
        /// 是否拥有该角色
        /// </summary>

        public bool AnyRole { get; set; }=false;
    }

    public class RoleWithUserOutPut
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public long SysRoleId { get; set; }
        /// <summary>
        /// 用户名称
        /// </summary>
        public string? SysRoleName { get; set; }
        /// <summary>
        /// 是否拥有该角色
        /// </summary>

        public bool AnyRole { get; set; } = false;
    }
}
